<tr>
    <td width="70%" align="left" valign="top">
<div class="block_box">
     <div class="block_top"><div></div></div>
        <div class="block_content">

<h2>类别列表</h2>

<table>
  <tr>
  <% for column in PostCategory.content_columns %>
    <th><%= column.human_name %></th>
  <% end %>
  </tr>
  
<% for category in @categories %>
  <tr>
  <% for column in PostCategory.content_columns %>
    <td><%=h category.send(column.name) %></td>
  <% end %>
    <td><%= link_to 'Show', admin_category_path(category) %></td>
    <td><%= link_to 'Edit', edit_admin_category_path(category) %></td>
    <td><%= link_to 'Destroy', admin_category_path(category), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<% if !@categories_pages.nil? %>
<%= pagination_links(@categories_pages)%>
<% end %>
<br />



</div>
     <div class="block_bottom"><div></div></div>
 </div>

</td>
    <td width="30%" align="left" valign="top">
 
 <div class="block_box">
     <div class="block_top"><div></div></div>
       <div class="block_content">
       <%= link_to '新建类别', :action => 'new' %>
   </div>
     <div class="block_bottom"><div></div></div>
 </div>
 
 </td>
  </tr>